<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:89:"/www/wwwroot/jiedai.bianshenn.top/public/../application/index/view/identity/identity.html";i:1554191214;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>身份认证</title>
    <link rel="stylesheet" href="/static/index/css/weui.css"/>
    <link rel="stylesheet" href="/static/index/css/example.css"/>
    <script src="/static/index/js/jquery-1.11.3.js"></script>
    <script src="/static/index/js/jquery.js"></script>
    <script src="/static/index/layer/layer.js"></script>
    <script src="/static/index/js/area.js"></script>
    <style>
        .bg{background: url('/static/index/img/loginbg.png')no-repeat;
            width: 100%;
            height: 40%;
            background-size: 100% 100%;
        }
        .weui-cells{
            margin-top:1.17647059em;
            line-height:1.47058824;
            font-size:17px;
            overflow:hidden;
            position:relative;
            background-color: transparent;
        }
        .register{
            font-size: 1rem;
        }
        .backg{
            background-image: url('/static/index/images/backg.png');
            background-size: 100% 200%;
        }
    </style>
</head>
<body ontouchstart class="backg">
<div style="width:90%;position:absolute;top: 7%;left: 50%;transform: translateX(-50%);" >
    <form action="Identityadd" method="post" name="form1" enctype="multipart/form-data">
    <div class="weui-cells" style="background-color:transparent;">
        <div class="weui-cell" style="background-color:transparent;">
            <div class="weui-cell__bd">
                <input  class="weui-input" maxlength="20" style="width: 90%" type="text"  name="name" id="name" placeholder="请输入真实姓名">
            </div>
        </div>
    </div>
    <div class="weui-cells" style="background-color:transparent;">
        <div class="weui-cell" style="background-color:transparent;">
            <div class="weui-cell__bd">
                <input class="weui-input" onkeyup="this.value=this.value.replace(/[^0-9-]+/,'');" maxlength="20" type="text" style="width: 90%" name="idcardno" id="idcardno" placeholder="请输入身份证号" >
            </div>
        </div>
    </div>
        <div class="weui-cells" style="background-color:transparent;">
        <div class="weui-cell" style="background-color:transparent;">
            <div class="weui-cell__bd">

                <div class="weui-cell__bd">
                    <div>
                        <select id="s_province" name="s_province"></select>&nbsp;&nbsp;
                        <select id="s_city" name="s_city" ></select>&nbsp;&nbsp;
                        <select id="s_county" name="s_county"></select>
                        <script class="resources library" src="/static/index/js/area.js" type="text/javascript"></script>
                        <script type="text/javascript">_init_area();</script>
                    </div>
                    <div id="show"></div>
                </div>

            </div>
        </div>
            <div class="weui-cells" style="background-color:transparent;">
                <div class="weui-cell" style="background-color:transparent;">
                    <div class="weui-cell__bd">
                        <input class="weui-input" maxlength="20" type="text" style="width: 90%" name="idcardnoaddress" id="idcardnoaddress" placeholder="请输入详情地址">
                    </div>
                </div>
            </div>
    </div>
    <div class="weui-cells" style="background-color:transparent;">
        <div class="weui-cell" style="background-color:transparent;">
            <div class="weui-cell__bd">
                <input class="weui-input" maxlength="20" type="text" style="width: 90%" name="bankcard" id="bankcard" placeholder="请输入银行卡号" onkeyup="this.value=this.value.replace(/[^0-9-]+/,'');">
            </div>
        </div>
    </div>

    <div class="weui-cells" style="background-color:transparent;">
        <div class="weui-cell" style="background-color:transparent;">
            <div class="weui-cell__bd">
                <input class="weui-input" maxlength="20" type="text" style="width: 90%" name="address" id="address" placeholder="请输入开户地址">
            </div>
        </div>
    </div>
        <div class="weui-cells" style="background-color:transparent;">
            <div class="weui-cell" style="background-color:transparent;">
                <div class="weui-cell__bd">
                    <input class="weui-input" maxlength="20" type="text" style="width: 90%" name="weixin" id="weixin" placeholder="请输入微信号">
                </div>
            </div>
        </div>
        <div class="weui-cells" style="background-color:transparent;">
            <div class="weui-cell" style="background-color:transparent;">
                <div class="weui-cell__bd">
                    <input class="weui-input" maxlength="20" type="text" style="width: 90%" name="alipay" id="alipay" placeholder="请输入支付宝号">
                </div>
            </div>
        </div>
        <div class="weui-cells" style="background-color:transparent;">
            <div class="weui-cell" style="height: 140px;background-color:transparent;">
                <div class="weui-cell__bd" style="height:100%;">

                    <div class="" style="width:100%;height:100%;background: url('/static/index/img/xinyong.png')no-repeat;background-size: 100% 100%;">
                        <input style="width:100%;height:100%;"  class="weui-uploader__input"  accept="image/*" capture="camera" type="file" id="book-file" name="score" onchange="show(this)" onclick="captureImage()">

                        <img id="book-pic"  style="width:100%;height:100%;">

                    </div>
                </div>
            </div>
        </div>
        <div class="weui-cells" style="background-color:transparent;">
            <div class="weui-cell" style="height: 140px;background-color:transparent;">
                <div class="weui-cell__bd" style="height:100%;">

                    <div class="" style="width:100%;height:100%;background: url('/static/index/img/personal.png')no-repeat;background-size: 100% 100%;">
                        <input style="width:100%;height:100%;"  class="weui-uploader__input"  accept="image/*" capture="camera" type="file" id="book-file" name="alipaydetails" onchange="show2(this)" onclick="captureImage()">

                        <img id="book-pic2"  style="width:100%;height:100%;">

                    </div>
                </div>
            </div>
        </div>

        <!--<div class="weui-cells" style="background-color:transparent;">-->
            <!--<div class="weui-cell" style="height: 140px;background-color:transparent;">-->
                <!--<div class="weui-cell__bd" style="height:100%;">-->

                    <!--<div class="" style="width:100%;height:100%;background: url('/static/index/img/personal.png')no-repeat;background-size: 100% 100%;">-->
                        <!--<input style="width:100%;height:100%;"  class="weui-uploader__input"  accept="image/*" capture="camera" type="file" id="book-file" name="personal" onchange="show3(this)" onclick="captureImage()">-->

                        <!--<img id="book-pic3"  style="width:100%;height:100%;">-->

                    <!--</div>-->
                <!--</div>-->
            <!--</div>-->
        <!--</div>-->

    </form>
    <br/>
    <br/>
    <a class="weui-btn weui-btn_primary"  style="background: #265EC4;" id="showTooltips" onclick="login()" >下一步</a>
</div>
</body>
<script>
    function login() {
        //alert(123);
        var name = $(" input[ name='name' ] ").val();
        var idcardno = $(" input[ name='idcardno' ] ").val();
        var idcardnoaddress = $(" input[ name='idcardnoaddress' ] ").val();
        var bankcard = $(" input[ name='bankcard' ] ").val();
        var address = $(" input[ name='address' ] ").val();
        if(name == ''){layer.msg('姓名不能为空');return false;}
        var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
        if(!reg.test(idcardno)){layer.msg('身份证号不能合法');return false;}
        if(idcardnoaddress == ''){layer.msg('地址详情不能为空');return false;}
        if(bankcard == ''){layer.msg('银行账户不能为空不能为空');return false;}
        if(address == ''){layer.msg('开户行不能为空');return false;}
        var weixin = $(" input[ name='weixin' ] ").val();
        if(weixin == ''){layer.msg('微信不能为空');return false;}
        var alipay = $(" input[ name='alipay' ] ").val();
        if(weixin == ''){layer.msg('支付宝不能为空');return false;}
document.form1.submit();
    }
</script>
<script src="/static/index/js/mui.min.js"></script>
<script>
    function plusReady(){
        var old_back = mui.back;
        mui.back = function() {
            //alert('不关闭')
        }
    }
    if(window.plus){
        plusReady();
    }else{
        document.addEventListener("plusready",plusReady,false);
    }
</script>
<script type="text/javascript">
    var Gid  = document.getElementById ;
    var showArea = function(){
        Gid('show').innerHTML = "<h3>省" + Gid('s_province').value + " - 市" +
            Gid('s_city').value + " - 县/区" +
            Gid('s_county').value + "</h3>"
    }
    Gid('s_county').setAttribute('onchange','showArea()');
</script>
<script>
    function show(f) {
        var rd = new FileReader();//创建文件读取对象
        var files = f.files[0];//获取file组件中的文件
        rd.readAsDataURL(files);//文件读取装换为base64类型
        rd.onloadend = function(e) {
            //加载完毕之后获取结果赋值给img
            document.getElementById("book-pic").src = this.result;
        }
    }
    function show2(f) {
        var rd = new FileReader();//创建文件读取对象
        var files = f.files[0];//获取file组件中的文件
        rd.readAsDataURL(files);//文件读取装换为base64类型
        rd.onloadend = function(e) {
            //加载完毕之后获取结果赋值给img
            document.getElementById("book-pic2").src = this.result;
        }
    }
    function show3(f) {
        var rd = new FileReader();//创建文件读取对象
        var files = f.files[0];//获取file组件中的文件
        rd.readAsDataURL(files);//文件读取装换为base64类型
        rd.onloadend = function(e) {
            //加载完毕之后获取结果赋值给img
            document.getElementById("book-pic3").src = this.result;
        }
    }

</script>
</html>